<?php
namespace app\index\controller;
use think\Controller;
use tthink\Db;

class Promote extends controller
{
    public function index()
    {
    	$res=Db::table('promote')->select();
    	if($res){
    		echo json_encode(['code'=>200,'msg'=>'成功','res'=>$res]);die;
    	}else{
			echo json_encode(['code'=>4003,'msg'=>'失败']);die;
    	}
    }
}
